import request from '@/utils/request'

// 查询历史建筑列表
export function listBuildings(query) {
  return request({
    url: '/TraditionalCultureSys/buildings/list',
    method: 'get',
    params: query
  })
}

// 查询历史建筑详细
export function getBuildings(id) {
  return request({
    url: '/TraditionalCultureSys/buildings/' + id,
    method: 'get'
  })
}

// 新增历史建筑
export function addBuildings(data) {
  return request({
    url: '/TraditionalCultureSys/buildings',
    method: 'post',
    data: data
  })
}

// 修改历史建筑
export function updateBuildings(data) {
  return request({
    url: '/TraditionalCultureSys/buildings',
    method: 'put',
    data: data
  })
}

// 删除历史建筑
export function delBuildings(id) {
  return request({
    url: '/TraditionalCultureSys/buildings/' + id,
    method: 'delete'
  })
}
